<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  CheckObject = function(){};
  CheckObject.prototype.checkName = function(){
    // 验证姓名
    console.log('name checked');
  }
  CheckObject.prototype.checkEmail = function(){
    // 验证邮箱
  }
  CheckObject.prototype.checkPassword = function(){
    // 验证密码
  }
  a = new CheckObject();
  a.checkName();
</script>
</body>
</html>